@layout("home.main")

@section("content")
<div class="main-wrap">
    <div class="main">
        <div class="main-content">
            <div class="title">
                <div class="float-left fs14">
                    <a href="/">Turui</a> » 用户登录
                </div>    
            </div>
            <div class="main-box home-box-list">
                <div class="loginframe">
                    <div class="item-avatar"></div>
                    <div class="item-content">
                    {{ Form::open() }}
                    {{ Form::token() }}
                    <p><label>登录名： {{ Form::text("uname",null,array("class"=>"sl w200"))}}</label></p>
                    <p><label>密　码： {{ Form::password("upassword",array("class"=>"sl w200"))}}</label></p>
                    <p><label>验证码： {{ Form::text("code",null,array("class"=>"sl w100"))}}<a href="javascript:reloadcode();" title="更换一张验证码图片"><img src="/code.png" style="vertical-align: middle;" id="code"/></a></label></p>
                    <p class="p_btn">{{ Form::submit(" 登 录 ",array("class"=>"loginbtn")) }}&nbsp;&nbsp;&nbsp;&nbsp;</p>
                    {{ Form::close()}}
                    </div>
                </div>
            </div>
        </div>
        <script language="javascript">
        function reloadcode() {
         var verify = document.getElementById('code');
         verify.setAttribute('src', '{{ URL::base() }}/code.png?' + Math.random());
        }
        </script>
        <!-- main-content end -->
        <div class="main-sider">
          @include("home.slidebar")
        </div>
        <!-- main-sider end -->
    </div>
    <!-- main end -->
</div>
@endsection
